<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{GerenciaPapel.page1}" id="page1">
            <ui:html binding="#{GerenciaPapel.html1}" id="html1">
                <ui:head binding="#{GerenciaPapel.head1}" id="head1">
                    <script>
                      function initAllRows() {
                       var table = document.getElementById("form1:table1");
                       table.initAllRows();
                      }
                    </script>
                    <ui:link binding="#{GerenciaPapel.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{GerenciaPapel.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{GerenciaPapel.form1}" id="form1">
                        <ui:tabSet binding="#{GerenciaPapel.tabSet1}" id="tabSet1" selected="tab2" style="height: 418px; left: 208px; top: 100px; position: absolute; width: 554px">
                            <ui:tab binding="#{GerenciaPapel.tab1}" id="tab1" text="Gerenciar">
                                <ui:panelLayout binding="#{GerenciaPapel.layoutPanel1}" id="layoutPanel1" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 414px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:staticText binding="#{GerenciaPapel.staticText4}" id="staticText4" style="left: 18px; top: 12px; position: absolute" text="Descrição"/>
                                    <ui:textField binding="#{GerenciaPapel.txtPapel}" id="txtPapel"
                                        style="height: 18px; left: 18px; top: 36px; position: absolute; width: 357px" text="#{SessionBean1.papelSelecionado.descricao}"/>
                                    <ui:button action="#{GerenciaPapel.btnSalvar_action}" binding="#{GerenciaPapel.btnSalvar}" id="btnSalvar"
                                        style="height: 23px; left: 139px; top: 60px; position: absolute; width: 115px" text="Salvar"/>
                                    <ui:button action="#{GerenciaPapel.btnExcluir_action}" binding="#{GerenciaPapel.btnExcluir}" id="btnExcluir"
                                        style="height: 23px; left: 259px; top: 60px; position: absolute; width: 115px" text="Excluir"/>
                                    <ui:hiddenField binding="#{GerenciaPapel.hiddenField1}" id="hiddenField1"/>
                                    <ui:alert binding="#{GerenciaPapel.alerta}" id="alerta" style="left: 24px; top: 174px; position: absolute; width: 394px" visible="false"/>
                                    <ui:panelLayout binding="#{GerenciaPapel.confirmar}" id="confirmar" panelLayout="flow"
                                        style="border-width: 1px; border-style: solid; border-color: rgb(243, 213, 150) rgb(243, 213, 150) rgb(243, 213, 150) rgb(243, 213, 150); background-color: rgb(255, 247, 214); height: 28px; left: 18px; top: 90px; position: absolute; width: 363px; -rave-layout: grid" visible="false">
                                        <ui:button action="#{GerenciaPapel.btnSim_action}" binding="#{GerenciaPapel.btnSim}" id="btnSim"
                                            style="height: 23px; left: 240px; top: 1px; position: absolute; width: 53px" text="Sim"/>
                                        <ui:button action="#{GerenciaPapel.btnNao_action}" binding="#{GerenciaPapel.btnNao}" id="btnNao"
                                            style="height: 23px; left: 299px; top: 1px; position: absolute; width: 53px" text="Não"/>
                                        <ui:label binding="#{GerenciaPapel.label1}" id="label1" text="Deseja realmente realizar esta operação?"/>
                                    </ui:panelLayout>
                                    <ui:button action="#{GerenciaPapel.btnInserir_action}" binding="#{GerenciaPapel.btnInserir}" id="btnInserir"
                                        style="height: 24px; left: 19px; top: 60px; position: absolute; width: 115px" text="Inserir"/>
                                </ui:panelLayout>
                            </ui:tab>
                            <ui:tab binding="#{GerenciaPapel.tab2}" id="tab2" text="Pesquisar">
                                <ui:panelLayout binding="#{GerenciaPapel.layoutPanel2}" id="layoutPanel2" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 414px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:textField binding="#{GerenciaPapel.txtPapelCriterio}" id="txtPapelCriterio" label="Papel" style="left: 18px; top: 18px; position: absolute"/>
                                    <ui:button action="#{GerenciaPapel.btnConsultar_action}" binding="#{GerenciaPapel.btnConsultar}" id="btnConsultar"
                                        primary="true" style="height: 23px; left: 299px; top: 18px; position: absolute; width: 115px" text="Procurar"/>
                                    <ui:button action="#{GerenciaPapel.btnSelecionar_action}" binding="#{GerenciaPapel.btnSelecionar}" id="btnSelecionar"
                                        style="height: 23px; left: 419px; top: 18px; position: absolute; width: 115px" text="Editar"/>
                                    <ui:alert binding="#{GerenciaPapel.alerta1}" id="alerta1" style="left: 12px; top: 324px; position: absolute; width: 394px"/>
                                    <ui:table augmentTitle="false" binding="#{GerenciaPapel.table1}" id="table1"
                                        style="left: 18px; top: 48px; position: absolute" title="Papeis" width="514">
                                        <ui:tableRowGroup binding="#{GerenciaPapel.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                            selected="#{GerenciaPapel.selectedState}" sourceData="#{SessionBean1.provedorDeDados}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{GerenciaPapel.tableColumn1}" id="tableColumn1" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{GerenciaPapel.radioButton1.id}">
                                                <ui:radioButton binding="#{GerenciaPapel.radioButton1}" id="radioButton1" label=""
                                                    name="#{GerenciaPapel.radioButton1.id}" selected="#{GerenciaPapel.selected}" selectedValue="#{GerenciaPapel.selectedValue}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciaPapel.tableColumn2}" headerText="Id" id="tableColumn2" width="8">
                                                <ui:staticText binding="#{GerenciaPapel.staticText1}" id="staticText1" text="#{currentRow.value['id']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciaPapel.tableColumn3}" headerText="Descrição" id="tableColumn3">
                                                <ui:staticText binding="#{GerenciaPapel.staticText2}" id="staticText2" text="#{currentRow.value['descricao']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                </ui:panelLayout>
                            </ui:tab>
                        </ui:tabSet>
                        <div style="left: 0px; top: 100px; position: absolute">
                            <jsp:directive.include file="menu.jspf"/>
                        </div>
                        <div style="left: 0px; top: 0px; position: absolute">
                            <jsp:directive.include file="topo.jspf"/>
                        </div>
                        <div style="left: 0px; top: 556px; position: absolute">
                            <jsp:directive.include file="rodapev.jspf"/>
                        </div>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
